package br.pucrs.prototipoonline.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessages;

import br.pucrs.prototipoonline.vo.UsuarioVO;


/**
 * 
 * @author Ricardo Luckei
 * @author Gelson Gentil
 *
 */
public class PrototipoOnlineAction extends POAction {

	private Logger logger = Logger.getLogger(PrototipoOnlineAction.class);
	
	public ActionForward executar(ActionMapping mapping, ActionForm actionForm,
			HttpServletRequest request, HttpServletResponse response,
			ActionErrors errorMessages, ActionMessages messages)
			throws Exception {
		UsuarioVO usuVO = getUsuario(request);
		logger.info(usuVO.getUsername() + " - Acessando o sistema");
		
		return mapping.findForward("success");
	}

}
